#ifndef QQ_FILE_DELEGATE
#define QQ_FILE_DELEGATE

#include <qpainter.h>
#include <qpainterpath.h>
#include <qstyleditemdelegate.h>

class QQFileDelegate :public QStyledItemDelegate
{
	Q_OBJECT
public:
	QQFileDelegate(QObject* parent = nullptr);
	~QQFileDelegate();
	void setItemHeight(qreal height);
	qreal getItemHeight() const;
protected:
	void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
	QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
private:
	qreal mItemHeight = 0;
};

#endif // !QQ_FILE_DELEGATE